
def learn_python(location):
    print("我正在{}学Python".format(location)) #语句块


learn_python("家里")



###返回结果集

def learn_python1(location):
    doing = ("我 正在{}自学Python 及写代码".format(location)) #把运行结果赋值给doing
    return doing

print(learn_python1("家里，公司....")) ##调用python函数并输出